//
//  UIImage+Water.h
//  DCNativeApiPlugin
//
//  Created by iOSTean on 2022/6/7.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIImage (Water)
/// 压缩图片尺寸
/// @param image 目标图片
/// @param newSize 新尺寸
+ (UIImage *_Nullable)newImageWithImage:(UIImage *_Nullable)image scaledToSize:(CGSize)newSize;
- (void)drawInRect:(CGRect)rect withContentMode:(UIViewContentMode)contentMode clipsToBounds:(BOOL)clips;
- (UIImage *_Nonnull)ly_addWatermarkWithWatermarkImages:(NSArray <UIImage *> *_Nullable)watermarkImages watermarkContents:(NSDictionary *)watermarkContents;

/// 获取bundle中的图片
/// @param imgName 图片名称
+ (UIImage *)imagesNamedFromCustomBundle:(NSString *)imgName;
@end

NS_ASSUME_NONNULL_END
